Repository navigation
Conversation
|
Using tritium, he3 or he4 from gemc to CJ was crashing the truth matching since it reads the MC Particle bank that converts PDG codes to short gemc codes, and these codes were not in the pdgdatabase |
|
I think Whitney added those species a few lines down. Maybe they were never used. |
|
@baltzell They were added with the real PDG code, but gemc is writing short codes in the MC::Particle bank that is then used for truth matching, so it crashes when using the truth matching specifically |
I believe everything that is added there with the PDG/geant4 ID and not the gemc/geant3 ID will crash with the truth matching. The TruthMatch class is reading out the ID from MC::Particle. gemc writes the short (geant3) ID in there. If there is no entry with the corresponding ID in the PDGdatabase, it crashes. This should be the case for all particleMap that are created using the geant4 PID as the first field at least. Maybe another solution is that the comparison is done with the particleIdGeant from the PDGParticle class, and not fields in the hashmap? |
|
Is ALERT using Whitney's 4 PDG particles? That naming follows more the existing naming scheme. |
|
It's worth mentioning here that gemc does support PDG codes in LUND files. But coatjava probably should support the same "short" (geant3) codes as gemc too. |
|
I think it's a better option but there is still 1 thing I'm unsure about. If someone decides for example to write the neutron as ID 13 in their generator output following geant3, will this be carried in the gemc output? If yes, then going to that pdgdatabase code, it will be interpreted as a geant4 id because it exists and the neutron will be read as a mu- |
No description provided.